<?php

namespace app\admin\controller;

use think\Controller;
use think\Db;
use think\Request;
use think\Session;

class cmsBase extends Controller
{
    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        if(Session::get('cms')==null){
            echo "<script>alert('请先登录');window.location.href='http://newgl.lcqjgj.com/admin'</script>";die;
        }

    }
}
